package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.FundAssetsDao;
import com.codi.bus.core.dao.OneFundDao;
import com.codi.bus.core.domain.FundAssets;
import com.codi.bus.core.domain.OneFund;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("oneFundDao")
public class OneFundDaoImpl extends GeneratedBaseDaoImpl<OneFund> implements OneFundDao {
    @Override
    public Long insertByCode( OneFund oneFund) {
        super.insert(this.generateStatement("insert"), oneFund);
        return oneFund.getOfFundAssetsId();
    }


}
